package com.foreknow.demo6;

public class T {
    public void method5() {
        A a = new A();
        a.method3();
        a.method4();
        B b = new B();
        b.method1();
        b.method2();
        System.out.println("method5......");
    }
    public static void main(String[] args) {
        T t = new T();
        t.method5();
    }
}
